import axios from 'axios'

let context = '/storeservice'

/***
 * 新增通知
 */
export function addStoreCategory(data: any) {
  return axios.post(`${context}/storeCategory`, data)
}

/***
 * 修改通知
 */
export function updateStoreCategory(data: any) {
  return axios.put(`${context}/storeCategory`, data)
}

/***
 * 获取通知列表
 */
export function getStoreCategoryPagination(data: any) {
  return axios.get(`${context}/storeCategory/pagination`, {
    params: data,
  })
}

export function getStoreCategoryAllList(data: any) {
  return axios.get(`${context}/storeCategory/allList`, {
    params: data,
  })
}

/***
 * 获取通知详情
 */
export function getStoreCategoryDetail(data: any) {
  return axios.get(`${context}/storeCategory`, {
    params: data,
  })
}

/***
 * 删除通知
 */
export function batchRemoveStoreCategory(data: any) {
  return axios.post(`${context}/storeCategory/batchRemove`, data)
}
